local evl_Gossip = CreateFrame("Frame", nil, UIParent)

function evl_Gossip:onEvent()
  if (arg1 ~= "Chained Spirit") and (GetCorpseRecoveryDelay() == 0) then
		HideUIPanel(StaticPopup1)
		AcceptResurrect()
	end
end

function evl_Gossip:new()
	self:SetScript("OnEvent", self.onEvent)
	self:RegisterEvent("RESURRECT_REQUEST")
end

evl_Gossip:new()